<hr />
<h1>Agregar / Editar Dimensiones</h1>
<hr />
<form class="cen" method="post">
<table style="margin:auto;" >
    <tr>
        <th colspan="3"></th>
    </tr>
    <tr>
        <th colspan="2">#Parte</th>
        <td>
            <input type="hidden" name="guardar" value="1" />
            <input type="hidden" name="id" value="{$datos.id|default:0}" />
            <select name="no_parte">
                {html_options values=$option_tipo_id output=$option_tipo_descrip selected=$datos.no_parte|default:"0"}
            </select>
        </td>
    </tr>
    <tr>
        <th colspan="2">Nombre</th>
        <td><input name="nombre"value="{$datos.nombre|default:""}" /></td>
    </tr>
    <tr>
        <th colspan="2">Operacion</th>
        <td><input name="operacion"value="{$datos.operacion|default:""}" /></td>
    </tr>
    <tr>
        <th rowspan="3">Valores</th>
        <th>Nominal</th>
        <td><input name="val_nominal" type="number" step=".00001" value="{$datos.val_nominal|default:0}" /></td>
    </tr>
    <tr>
        <th>Minimo</th>
        <td><input name="tol_min" type="number" step=".00001" value="{$datos.tol_min|default:0}" /></td>
    </tr>
    <tr>
        <th>Maximo</th>
        <td><input name="tol_max" type="number" step=".00001" value="{$datos.tol_max|default:0}" /></td>
    </tr>
    <tr>
        <th colspan="2">Atributo</th>
        <td><input name="atributo" type="checkbox" {if isset($datos.atributo) && $datos.atributo == 1} checked="" {/if} /></td>
    </tr>
    <tr>
        <th colspan="2">Final</th>
        <td><input name="final" type="checkbox" {if isset($datos.final) && $datos.final == 1} checked="" {/if} /></td>
    </tr>
    <tr>
        <th colspan="3"><input type="submit" value="Guardar"/></th>
    </tr>
</table>
</form>